﻿using System;
using Holidays.CountryCalculators;

namespace Holidays {

	public static class CalculatorFactory {

		public static BaseCalculator GetCalculator(String culture) {
			if (String.IsNullOrWhiteSpace(culture)) {
				throw new ArgumentNullException("culture");
			}

			// TODO: Handle this somehow!
			switch (culture) {
				case "da-DK":
					return new DanishCalculator();
				case "en-UK":
					return new EnglishCalculator();
				case "de-DE":
					return new GermanCalculator();
				default:
					throw new NotImplementedException();
			}
		}
	}
}